<?php foreach($arrWatchList as $wl) { ?>
    <p class="list-row" id="row-<?php echo $wl->getId(); ?>">
        <span class="title"><?php echo $wl->getName(); ?></span>
        <span class="command">
            <span class="update" onclick="updateWatchlist('<?php echo base_url(array('watchlist', 'update')); ?>', '<?php echo $wl->getId(); ?>', '<?php echo $wl->getName(); ?>');" title="Click to update this watch list"></span>
            <span class="delete" onclick="deleteWatchlist('<?php echo base_url(array('watchlist', 'delete')); ?>', '<?php echo $wl->getId(); ?>', 'row-<?php echo $wl->getId(); ?>');" title="Click to delete this watch list"></span>
        </span>
    </p>
<?php } ?>